package w.z.x.framework.repository;

import w.z.x.framework.repository.annotations.EnumValue;

/**
 * 性别
 * @author 魏祖潇
 */
public enum Gender {

    NONE(0, ""),

    MALE(1, "男"),

    FEMALE(2, "女")

    ;

    @EnumValue
    final int code;
    final String title;

    Gender(int code, String title) {
        this.code = code;
        this.title = title;
    }

    public int getCode() {
        return code;
    }

    public String getTitle() {
        return title;
    }
}
